package com.cmc6.request.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cmc6.common.model.dto.ChangeBoolByStrId;
import com.cmc6.common.model.entity.EsErrorDO;
import com.cmc6.request.model.dto.RequestAnalysisRequestNumberDTO;
import com.cmc6.request.model.dto.RequestErrorLogPageDTO;
import com.cmc6.request.model.dto.RequestPageDTO;
import com.cmc6.request.model.entity.RequestDO;
import com.cmc6.request.model.vo.RequestAnalysisRequestNumberVO;
import com.cmc6.request.model.vo.RequestPageVO;
import com.cmc6.request.model.vo.RequestRankingVO;

import java.util.List;

public interface RequestService extends IService<RequestDO> {

    Page<RequestPageVO> myPage(RequestPageDTO dto);

    List<RequestAnalysisRequestNumberVO> analysisRequestNumber(RequestAnalysisRequestNumberDTO dto);

    List<RequestRankingVO> ranking();

    List<RequestRankingVO> slowRanking();

    RequestRankingVO analyzeAll(RequestPageDTO dto);

    Page<EsErrorDO> errorLogPage(RequestErrorLogPageDTO dto);

    String changeErrorLogReadFlag(ChangeBoolByStrId changeBoolByStrId);

}
